package org.ccams.dao;

import java.sql.SQLException;
import java.util.List;

import org.ccams.domain.TSalesordersD;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;



public class TSalesordersDDAO extends SqlMapClientDaoSupport{
    
    @SuppressWarnings( { "unchecked", "deprecation" })
	public List<TSalesordersD> getTSalesordersD(int idt_salesorders_h) {
		return getSqlMapClientTemplate().queryForList(
				"T_Salesorders_D.getT_salesorders_dById", idt_salesorders_h);
	}

	public int getSalesordersdCount() {
		int count = 0;
		count = (Integer) getSqlMapClientTemplate().queryForObject(
				"T_Salesorders_D.getT_salesorders_dCount");
		return count;
	}
	
	public int updateByPrimaryKey(TSalesordersD record) throws SQLException {
		return getSqlMapClientTemplate().update(
				"T_Salesorders_D.updateByPrimaryKey", record);
	}

	public int insertSalesordersd(TSalesordersD t) {
		// TODO Auto-generated method stub
		return getSqlMapClientTemplate().update("T_Salesorders_D.insertSalesordersd",t);
	}


}